use serde_json::{json, Value};
use edp_derive::edp_service;
use crate::lib::func as myfunc;
#[edp_service(
    name = "rust-test",
    desc = "test service in rust",
    category = "visualization",
    tasks = [
        "func: Any->Any"
    ]
)]
struct Test;
impl Test {
    pub fn func(&self, inputs: Value) -> Result<Value, String> {
        Ok(myfunc(inputs))
    }
}
#[actix_web::main]
async fn main() -> std::io::Result<()> {
    service(8120).await
}